import { ref } from 'vue'
import { defineStore } from 'pinia'
import { getCategoryAPI } from '@/apis/layout'
export const useCategoryStore = defineStore('category', () => {
  //当前导航列表的逻辑
let categoryList = ref([])
let getCategory = async () => {
  let res = await getCategoryAPI()
  //console.log(res)
  categoryList.value = res.result
}
return {
  getCategory,categoryList
}

})
